/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const homeRouter = {
  path: '/home',
  component: Layout,
  name: 'home',
  meta: {
    title: '首頁輪播圖',
    icon: 'chart',
  },
  children: [
    {
      path: 'swiper',
      component: () => import('@/views/home/swiper.vue'),
      name: 'swiper',
      meta: { title: '首頁輪播圖', noCache: true }
    },
    {
      path: 'addSwiper',
      component: () => import('@/views/home/addSwiper.vue'),
      name: 'addSwiper',
      meta: { title: '新增輪播圖', hidden: true }
    },
    {
      path: 'editSwiper',
      component: () => import('@/views/home/editSwiper.vue'),
      name: 'editSwiper',
      meta: { title: '編輯輪播圖', hidden: true }
    },



  ]
};

export default homeRouter;
